/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.photo.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.photo.entity.Photo;
import com.jeeplus.modules.photo.mapper.PhotoMapper;

/**
 * 默认头像Service
 * @author zhych
 * @version 2021-11-19
 */
@Service
@Transactional(readOnly = true)
public class PhotoService extends CrudService<PhotoMapper, Photo> {

	public Photo get(String id) {
		return super.get(id);
	}
	
	public List<Photo> findList(Photo photo) {
		return super.findList(photo);
	}
	
	public Page<Photo> findPage(Page<Photo> page, Photo photo) {
		return super.findPage(page, photo);
	}
	
	@Transactional(readOnly = false)
	public void save(Photo photo) {
		super.save(photo);
	}
	
	@Transactional(readOnly = false)
	public void delete(Photo photo) {
		super.delete(photo);
	}
	
}